
package BusLib;
import java.lang.Object.*;
import java.io.*;

public class Coordinates implements Serializable {
    double latitude_;
    double longitude_;

    /*
     * Constructori.
     */
    public Coordinates(){
        latitude_ = 0;
        longitude_ = 0;
    }

    public Coordinates(Coordinates other){
        latitude_ = other.latitude_;
        longitude_ = other.longitude_;
    }

    public Coordinates(double latitude,double longitude){
        latitude_ = latitude;
        longitude_ = longitude;
    }

    /*
     * Metode publice.
     */
    public double Longitude() { return longitude_; }
    public void SetLongitude(double value) { longitude_ = value; }

    public double Latitude() { return latitude_; }
    public void SetLatitude(double value) { latitude_ = value; }
}